using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using FreeSql.DataAnnotations;

namespace SchoolApp_Material.Models;

/// <summary>
/// 班级
/// </summary>
[Table(Name = "form")]
public class Form : DataBase
{
    /// <summary>
    /// 年级
    /// </summary>
    [Column(Name = "year", IsNullable = false)]
    public int Year { get; set; }

    /// <summary>
    /// 编号
    /// </summary>
    [Column(Name = "code", StringLength = 50, IsNullable = true)]
    public string? Code { get; set; }

    /// <summary>
    /// 班主任编号
    /// </summary>
    [Column(Name = "teacher_code", StringLength = 50, IsNullable = true)]
    public string? TeacherCode { get; set; }

    /// <summary>
    /// 班主任姓名
    /// </summary>
    [Column(Name = "teacher_name", StringLength = 50, IsNullable = true)]
    public string? TeacherName { get; set; }
}